<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="进度表" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script language="javascript">
	function doCancel(){
		window.close();
	}
	function doInit(){
	}
</script>
</head>
<body oncontextmenu="return false" onload="doInit();" class="sheet modal-dialog" style="padding-top:10px;text-align:center;" >
<div class="sheet-main" id="bodyDiv" style="width:860px;text-align:left;margin:auto">
  <div class="sheet-list" style="width:100%">
    <div class="modal-main search-business">
		<div style="width:100%;">
		<h3>${record.billCode} - 【${wc.wcName}】进度表</h3>
		<table border="0" cellspacing="1" cellpadding="1" align="center" class="table-a2">
			<tr>    
		      	<th>订货单位：</th>
		     	<td >${est.estName}</td>
		     	<th>订货日期：</th>
		      	<td ><fmt:formatDate value="${record.orderDate}" pattern="yyyy-MM-dd HH:mm"/></td>
		    	<th>交货日期：</th>
		    	<td ><c:if test="${record.deliverDate!=null}"><fmt:formatDate value="${record.deliverDate}" pattern="yyyy-MM-dd HH:mm"/></c:if></td>
		    </tr>
		    <tr>
		    	<th>业务员：</td>
				<td >${record.managerName}</td>
				<th>设计员：</td>
				<td >${record.designerNameStr}</td>
				<th>跟单员：</td>
				<td >${record.followerNameStr}</td>
		    </tr>
		    <tr>
				<th>摘要：</th>
		      	<td >${record.content}</td>
				<th>安装要求：</th>
		      	<td >${record.setupRequire}</td>
		    	<th>提货要求：</th>
		      	<td >${record.ladingRequire}</td>
			</tr>
		</table>
		
		<div class="table-list">
			<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
				<tbody>
				<tr >
					<th width="10%" >项目类型</th>
					<th width="12%" >内容</th>
					<th width="12%" >材质</th>
					<th width="12%" >规格</th>
					<th width="8%" >单位</th>
					<th width="8%" >数量</th>
					<th width="14%" >制作要求</th>
					<th width="16%" >完成情况</th>
					<th width="8%" >当前工序</th>
				</tr>
				<c:forEach var="item" items="${itemList}" varStatus="i">
				<c:if test="${item[0].wcId==wc.id}">
				<tr >
					<td><commonTag:showSimpleObjectName list="${mtList}" objectId="${item[0].makeTypeId}" /></td>
					<td><commonTag:parseEnterToBr source="${item[0].finishedContent}" /></td>
					<td>${item[0].proName}</td>
					<td>
						<commonTag:parseEnterToBr source="${item[0].specification}" />
						<c:if test="${item[0].priceType=='AREA' || item[0].priceType=='LENGTH'}"> x <commonTag:parseBigDecimal source="${item[0].amount}" /></c:if>
					</td>
					<td>
						<c:if test="${item[0].priceType=='AREA'}">平方米</c:if>
						<c:if test="${item[0].priceType=='LENGTH'}">
							<c:if test="${item[0].lengType=='M'}">米</c:if><c:if test="${item[0].lengType=='CM'}">公分</c:if>
						</c:if>
						<c:if test="${item[0].priceType=='AMOUNT'}">${item[0].unit}</c:if>
					</td>
					<td>
						<c:if test="${item[0].priceType=='AREA' || item[0].priceType=='LENGTH'}"><commonTag:parseBigDecimal source="${item[0].squareNum}" /></c:if>
						<c:if test="${item[0].priceType=='AMOUNT'}"><commonTag:parseBigDecimal source="${item[0].amount}" /></c:if>
					</td>
					<td><commonTag:parseEnterToBr source="${item[0].makeRequire}" /></td>
					<td>${item[1].compStr}</td>
					
					<td>
						<c:if test="${item[1].maked=='N'}">未开工</c:if>
						<c:if test="${item[1].maked=='Y'}"><commonTag:showSimpleObjectName list="${proList}" objectId="${item[1].proId}" /></c:if>
					</td>
				</tr>
				</c:if>
				</c:forEach>
				</tbody>
		  </table>
		</div>
	  </div>
	
  	</div>
  </div>
	<div class="modal-buttom">
		<input type="button" class="buttom-a" value=" 退 出 " onClick="doCancel();">
	</div>  
</div>
</body>
</html>